package be.kdg.componenten.chatters;

import java.util.List;

/**
 * Tom Verelst
 * Wim Goeman
 */
public interface Chatters {
        /**
     * Add a new chatter to the database.
     *
     * @param chatter the chatter
     */
    public void add(Chatter chatter);

    /**
     * Removes a chatter from the database.
     *
     * @param chatter the chatter
     */
    public void remove(Chatter chatter);

     /**
     * Checks if the name is already in use
     *
     * @return boolean if name is in use
     */
    public Boolean contains(String name);
    /**
     * Returns the amount of chatters in the database
     *
     * @return number of chatters
     */
    public int getNumberOfChatters();

    /**
     * Chatters receive a maessage
     *
     * @param name the name of the sender
     * @param text the message being sent
     */
    public void receive(String name, String text);

    public List<Chatter> getChatters();
}
